package com.huishu.commons.enums;

import lombok.Getter;

/**
 * @ClassName：HomeImageUrlEnum
 * @Author: ljj
 * @Date: 2023/6/16 17:16
 */
@Getter
public enum HomeImageUrlEnum {
    HOME(1, "首页"), WELFARE(2, "粉丝福利"),
    GROUP_CHAT(3, "群聊"),
    SAMPLE(4, "领取样品"),
    CUSTOM_ACTIVITY(5, "自定义活动页"),
    OFFICIAL_ACCOUNT(6, "公众号"),
    MEMBERSHIP_RULES(7, "会员规则"),
    COMMUNITY_DISCOUNT_COUPON(8, "社群优惠卷");

    public static String getMsgByCode(Integer type){
        for (HomeImageUrlEnum value : HomeImageUrlEnum.values()) {
            if (value.getType().equals(type)){
                return value.getMessage();
            }
        }
        return "";
    }

    HomeImageUrlEnum(Integer type, String message) {
        this.type = type;
        this.message = message;
    }

    private Integer type;
    private String message;

}
